package cn.com.landsky.camera.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/***
 ** @category 回调控制器...
 ** @author qing.yunhui
 ** @email: qingyunhui@landsky.cn
 ** @createTime: 2019/1/11-17:01
 **/
@Controller
@RequestMapping(value="/callback")
@Slf4j
@Api(value = "CallbackController", description = "回调控制器")
public class CallbackController {

    /**
     * @param method 方法名**，**用于标识报文用途
     * @param params 事件参数信息
     * */
    @RequestMapping(value = "/event/subscriptionByEventTypes.htm")
    @ApiOperation(value = "事件订阅接收")
    public String videoLossAlarm(String method,String params){
        log.info("==========================>接收到【ISC-综合安防平台】事件订阅接收，异步回调，method={}，params={}.",new Object[]{method,params});
        return method+"\n"+params;
    }

}
